﻿// LineOfSight
// Object representing a line of sight according to intercept theorem
// 
// FLMScan - Featured by FabLab Munich

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLMScan.Geometry;

namespace FLMScan.WorldCoordinateReconstruction.Riedmaier
{
    class LineOfSight
    {
        private double f;

        public LineOfSight(double f)
        {
            this.f = f;
        }

        public FlmPoint getPointOnLine(double s, FlmPoint imagePlanePoint)
        {
            FlmPoint pointOnLine = new FlmPoint(s * imagePlanePoint.X, s * imagePlanePoint.Y, s * f);
            return pointOnLine;
        }
    }
}
